package com.slz3.business.module.goodsManagement.gooGoods.service;

import com.slz3.business.module.goodsManagement.gooGoods.domain.GooGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface GooGoodsService {

    GooGoods save(GooGoods gooGoods);

    Page<GooGoods> page(MultiValueMap<String,String> queryParams);

    GooGoods modify(GooGoods gooGoods);

    Optional<GooGoods> single(UUID uuid);

    List<GooGoods> findAllByUuids(Iterable<UUID> uuids);

    List<GooGoods> delete(List<GooGoods> gooGoodsList);
}
